﻿using EmoneyWeiXinCommon;
using EmoneyWeiXinEntity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace EmoneyWeiXinDAL
{
    public class TJ_Business_NewsReportDAL
    {
        public List<VW_VW_TJNewReportEntity> GetNRTJDataByPage(int pageSize, int pageIndex, string whereText, string orderBy, out int totalPage)
        {
            PageHelper pgHelper = new PageHelper("TJ_Business_NewsReports", "ID");
            pgHelper.CurrentPage = pageIndex;
            pgHelper.PageSize = pageSize;
            pgHelper.WhereText = whereText;
            pgHelper.Orderby = orderBy;
            DataTable dt = pgHelper.GetData();
            totalPage = pgHelper.TotalRecord;
            return SQLHelper.DataConvert<VW_VW_TJNewReportEntity>(dt);
        }
    }
}
